package com.pureut.equipment.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pureut.equipment.domain.EquipmentKnowledge;
import com.pureut.equipment.domain.dto.EquipmentKnowledgeDto;
import com.pureut.equipment.domain.vo.EquipmentKnowledgeVo;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;

import java.util.List;
import java.util.Map;

/**
 * @Description 设备知识库service
 * @Param
 * @Date
 * @Author hl
 **/
public interface IEquipmentKnowledgeService {

    /**
     * 查询设备知识库列表
     *
     * @param equipmentKnowledgeVo 接受类
     * @return 设备知识库列表
     */
    TableDataInfo<EquipmentKnowledgeDto> selectKnowledgeList(EquipmentKnowledgeVo equipmentKnowledgeVo, PageQuery pageQuery);

    /**
     * 新增设备知识库
     *
     * @param equipmentKnowledge
     * @return 设备知识库新增
     */
    boolean insertEquipmentKnowledge(EquipmentKnowledge equipmentKnowledge) throws Exception;

    /**
     * 修改设备知识库
     *
     * @param equipmentKnowledge
     * @return 设备知识库修改
     */
    boolean updateEquipmentKnowledge(EquipmentKnowledge equipmentKnowledge);

    /**
     * 查询单个设备知识库
     *
     * @param knowledgeId id
     * @return 查询单个
     */
    EquipmentKnowledgeDto selectKnowledgeById(long knowledgeId);

    /**
     * 删除单个设备知识库
     *
     * @param knowledgeId id
     * @return 删除单个
     */
    boolean deleteKnowledgeById(long knowledgeId);

    /**
     * map列表
     * @return
     */
    List<Map<String, String>> selectKnowledgeById1();
}
